//
//  WKWebController.m
//  HaiGeEr_Student
//
//  Created by liuchen on 2018/9/11.
//  Copyright © 2018年 海格尔. All rights reserved.
//

#import "WKWebController.h"
#import "UIViewController+Ext.h"
#import "WKSWebView.h"

@interface WKWebController ()
@property (nonatomic,weak) WKSWebView *webView;
@end

@implementation WKWebController

- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    [[CoachTabBarController shareLZHTabbarController].tabBar setHidden:YES];
}

- (void)viewWillDisappear:(BOOL)animated{
    [super viewWillDisappear:animated];
    [[CoachTabBarController shareLZHTabbarController].tabBar setHidden:NO];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    [self createSubView];
}

#pragma mark ==========创建视图==========
- (void)createSubView{
    self.title = self.titleConten;
    WKSWebView *webView = [[WKSWebView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT) WithUrl:self.url];
    _webView = webView;
    [self.view addSubview:self.webView];
    [self setNavBack];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
